<div style="float: right;">
<%=form_tag url_for_options = {:controller => "story", :action => "search"}, options = {:method => "get"}%>
<p>
  <%=text_field_tag "query", @query%>
  <%=submit_tag "search"%>
</p>
<%=end_form_tag%>
</div>